package com.gavin.plugin.database;

import java.lang.annotation.*;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Table {

    String tableName();

    String primaryKey() default "";

    /**
     * @title  sharding
     * @author Yudao 王冬明（woyuwodao@gmail.com） @date 2018/11/8 16:07
     * @param
     * @return
     */
    String shardingKey() default "";
    String GroupId();
    String GroupTableCount();
    String GroupTableCapacity();
    String GroupCount();
    String HashedIdCount();


//    <BigTable Name="tbTemplatesRecord" GroupId="writeTemplates" GroupTableCount="10" GroupTableCapacity="1" GroupCount="5" HashedIdCount="50"/>
}